seajs.config({
    //设置路径
    paths: {
        'common': '../../js/common',
        'css':'../../css/common',
        'root': '/js'
    },
    alias: {
        'modal.js': 'common/modal.js',
        'modal.css': 'css/modal.css',
        'highcharts': 'common/highcharts.js',
        'hce':'common/highcharts-ext.js',
        'swipeSlide': 'common/swipeSlide.js',
        'echarts': 'common/echarts/echarts.js'
    }
});
$.extend($,{
    remPx:function (num) {
        return parseFloat($('html').css("font-size")) * num;
    },
    getRequest:function () {
        var url = decodeURIComponent(location.search); //获取url中"?"符后的字串
        var theRequest = {};
        if (url.indexOf("?") != -1) {
            var str = url.substr(1);
            strs = str.split("&");
            for (var i = 0; i < strs.length; i++) {
                theRequest[strs[i].split("=")[0]] = (strs[i].split("=")[1]);
            }
        }
        return theRequest;
    }
});
